
import requests
import urllib3

urllib3.disable_warnings()
base_url = 'https://data.stats.gov.cn/'
header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1'}

response = requests.get(base_url, headers=header)

print(response.status_code)
